//
//  PhotoColCell.m
//  PSYWeiBo
//
//  Created by xiaotian on 16/3/16.
//  Copyright © 2016年 郑亚田. All rights reserved.
//

#import "PhotoColCell.h"

@implementation PhotoColCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self addAllViews];
    }
    return self;
}

- (void)addAllViews {
    UIImageView *bagImg = [[UIImageView alloc] init];
    [self addSubview:bagImg];
    [bagImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self).with.insets(UIEdgeInsetsMake(0, 0, 0, 0));
    }];
    bagImg.image = [UIImage imageNamed:@"albumKuang"];
    
    self.photoImg = [UIImageView new];
    [self addSubview:self.photoImg];
    [self.photoImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self).with.insets(UIEdgeInsetsMake(3, 3, 3, 3));
    }];
}

@end
